﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Traceability.Common.Dtos
{
    public class Result
    {
        /// <summary>
        /// 0:成功
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public object Data { get; set; }
        /// <summary>
        /// 提示信息
        /// </summary>
        public string Msg { get; set; }
    }
    public class Result<T> where T : class
    {
        /// <summary>
        /// 0:成功
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public List<T> Data { get; set; }= new List<T>();
        /// <summary>
        /// 提示信息
        /// </summary>
        public string Msg { get; set; }
        public T list { get; set;}
    }
}
